package com.yss.sofa.report.engine.cell.invisible.param;

import com.yss.sofa.report.engine.Const;
import com.yss.sofa.report.engine.Parameter;
import com.yss.sofa.report.engine.cell.ReportCell;
import com.yss.sofa.report.engine.cell.invisible.InvisibleCell;


public class ParameterCell extends InvisibleCell implements Parameter{
	private static final long serialVersionUID = -1176182085669922753L;
	private String value;
	private int paramType;
	protected void init() {
		super.init();
		this.value=null;
		this.type=Const.REPORT_CELL_TYPE_PARAM;
		this.paramType=Const.PARAM_DATA_TYPE_STRING;
	}
	public void assignTo(ReportCell cell){
		ParameterCell _=(ParameterCell)cell;
		super.assignTo(_);
		_.value=this.value;
		_.paramType=this.paramType;
	}
	public ParameterCell create(){
		ParameterCell _=new ParameterCell();
		this.assignTo(_);
		return _;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public int getParamType() {
		return paramType;
	}
	public void setParamType(int paramType) {
		this.paramType = paramType;
	}
}
